import { takeEvery } from "redux-saga/effects"

import { GETSAGA } from "../../reducer/actionTypes"
import axios from "axios";
import store from "../../store";
function* mySaga() {
  yield takeEvery(GETSAGA, getSaga)
}
function* getSaga() {
  const { data } = yield axios.get(`https://api.muxiaoguo.cn/api/QqInfo?qq=${store.getState().value ? store.getState().value : 1975273372}`)
  console.log("getSaga执行了", store.getState(), data.data)
}
export default mySaga;